package com.ruoyi.bookkeeping.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.bookkeeping.domain.BookDynamicReply;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: 
 * @Date: 2023/02/25/9:51
 * @Description:
 */
@Data
@ApiModel(value = "BookDynamicVo",description = "动态返回实体类")
public class BookDynamicVo {
    @ApiModelProperty("动态id")
    private Long dynamicId;

    @ApiModelProperty("动态用户id")
    private Long dynamicUserId;

    @ApiModelProperty("是否为自己的动态0不是 1是")
    private Integer isMyDynamic;

    @ApiModelProperty("动态内容")
    @Excel(name = "动态内容")
    private String dynamicContent;

    @ApiModelProperty("动态图片")
    @Excel(name = "动态图片")
    private String dynamicImg;

    @ApiModelProperty("动态点赞数量")
    @Excel(name = "动态点赞数量")
    private Long dynamicGoodNum;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("好友备注")
    @Excel(name = "好友备注")
    private String friendsRemark;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("评论及回复")
    private List<BookDynamicReplyVo> bookDynamicReplyVos;
}
